# Contribuitor: sick <sick@rape.lol> 
# Maintainer: sick <sick@rape.lol>
pkgname=meh
pkgver=0.4
pkgrel=0
pkgdesc="Small, simple, super fast image viewer using raw XLib"
url="https://notabug.org/urukhai/meh"
arch="x86 x86_64"
license="MIT"
depends="giflib libjpeg-turbo libpng libx11 libxtst"
makedepends="giflib-dev libjpeg-turbo-dev libpng-dev libx11-dev libxtst-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://notabug.org/urukhai/meh/archive/v0.4.tar.gz
	fix-musl-fd-set.patch
	"

builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
}

build() {
	cd "$builddir"
	make meh || return 1
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
}

sha512sums="f99bacdee34b816953c55063ba2a5e98437375b950f472954b0136ee75edd41b879c7e7c1054c4939ac0ed1304cc655d0e88947d8b37796b7c093836f4870a3d  meh-0.4.tar.gz
69bf1b1aa2654ad0503839285916ffeee54f81bb1557c640fccb92520a9c34ec3bca5370ba2da6f3cdb798f999fab9bbd56720266ad5275b69c3ae293edc0ea1  fix-musl-fd-set.patch"
